package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 采购单明细表
 * </p>
 *
 * @author Mr.Zhang
 * @since 2025-03-12
 */
@Data
@TableName("purchase_order_details")
public class PurchaseOrderDetails implements Serializable {

    private static final long serialVersionUID=1L;

    //@ApiModelProperty(value = "主键，自增id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //@ApiModelProperty(value = "采购订单id")
    private Integer purchaseId;

    //@ApiModelProperty(value = "商品id")
    private Integer productId;

    //@ApiModelProperty(value = "采购数量")
    private Integer count;

    //@ApiModelProperty(value = "价格")
    private Float price;

    //@ApiModelProperty(value = "总价")
    private Float subtotal;

    //@ApiModelProperty(value = "入库标志，K001-1（等待入库）、K001-2（入库失败）、K001-3（入库成功）")
    private String gatherTag;

    @TableField(exist = false)
    private Product product;


    @TableField(exist = false)
    private PurchaseOrder purchaseOrder;
}
